﻿<%@ Page Title="Barang Keluar per Laboratorium" Language="C#" MasterPageFile="~/Lab.master" AutoEventWireup="true" CodeFile="BarangKeluarPerLab.aspx.cs" Inherits="BarangKeluarPerLab" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" Runat="Server">
    <form id="myForm" class="form-horizontal form-label-left" method="post" runat="server">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2>Daftar Barang Keluar per Laboratorium</h2>
                <ul class="nav navbar-right panel_toolbox">
                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="#">Settings 1</a>
                            </li>
                            <li><a href="#">Settings 2</a>
                            </li>
                        </ul>
                    </li>
                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>

            <div class="x_content">
                <div class="form-group">
                    <label class="control-label col-md-2 col-sm-3 col-xs-12" for="barang">TAHUN ANGGARAN<span class="required">*</span></label>
                    <div class="col-md-10 col-sm-6 col-xs-12">
                        <asp:DropDownList runat="server" ID="lstTahun" CssClass="select2_tahun form-control" EnableViewState="true" required="required"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-md-2 col-sm-3 col-xs-12">Laboratorium<span class="required">*</span></label>
                    <div class="col-md-8 col-sm-6 col-xs-12">
                        <asp:DropDownList runat="server" ID="lstLab" CssClass="select2_lab form-control" EnableViewState="true" required="required"/>
                    </div>
                    <div class="col-md-2 col-sm-6 col-xs-12">
                        <asp:Button runat="server" Text="Tampilkan Data" CssClass="btn btn-success" ID="btnCek" OnClick="btnCek_Click" />
                    </div>
                </div>
                <hr />
                <div class="form-group">
                    <asp:Repeater ID="userList" runat="server">
                        <HeaderTemplate>
                            <table class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                        <th class="column-title">NO</th>
                                        <th class="column-title">Nama Barang</th>
                                        <th class="column-title">Jumlah Permintaan</th>
                                        <th class="column-title">Stok Tersedia</th>
                                        <th class="column-title">Barang Keluar</th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "NO") %></td>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "NAMA_BARANG") %></td>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "JUMLAH") %> <%# DataBinder.Eval(Container.DataItem, "KEMASAN") %></td>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "STOK") %> <%# DataBinder.Eval(Container.DataItem, "KEMASAN") %></td>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;">
                                    <input id="jumlah" class="form-control col-md-1" type="number" step="1" name="jumlah_<%# DataBinder.Eval(Container.DataItem, "ID") %>" style="width: 100px" max="<%# DataBinder.Eval(Container.DataItem, "MAX") %>" >
                                    <span>&nbsp;<%# DataBinder.Eval(Container.DataItem, "KEMASAN") %></span>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                                    </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>

                <div class="form-group">
                    <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-5">
                        <asp:Button runat="server" Text="Kirim" CssClass="btn btn-success" ID="btnKirim" OnClick="btnKirim_Click" />
                    </div>
                </div>
            </div>
        </div>

        <div class="x_panel">
            <div class="x_title">
                <h2>Daftar Barang Yang Sudah Keluar</h2>
                <ul class="nav navbar-right panel_toolbox">
                    <li><a class="collapse-link"><i class="fa fa-chevron-down"></i></a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="#">Settings 1</a>
                            </li>
                            <li><a href="#">Settings 2</a>
                            </li>
                        </ul>
                    </li>
                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>

            <div class="x_content" style="display:none">
                <div class="form-group">
                    <asp:Repeater ID="list2" runat="server">
                        <HeaderTemplate>
                            <table id="table-responsive" class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                        <th class="column-title">NO</th>
                                        <th class="column-title">Nama Barang</th>
                                        <th class="column-title">Jumlah Permintaan</th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "NO") %></td>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "NAMA_BARANG") %></td>
                                <td class=" " style="white-space: nowrap; vertical-align:middle;"><%# DataBinder.Eval(Container.DataItem, "JUMLAH") %> <%# DataBinder.Eval(Container.DataItem, "KEMASAN") %></td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                                    </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
    </div>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyFooterContainer" Runat="Server">
</asp:Content>

